
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="s" uri="/struts-tags" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>图书管理系统</title>
</head>
<body>
<s:form action="">
    <div class="text-c">
        <s:select
                list="#{'1':'按出版社查询','2':'按当前库存查询'}"/>
        <s:textfield name="keyword" style="width:250px" />
       <s:submit value="查询"/>
    </div>
</s:form>
<a href="addBook.jsp">添加</a>
<s:form action="query">
    <table border="1">
        <tr>
            <td align="center" width="100">书名编号</td>
            <td align="center"  width="100">书名</td>
            <td align="center"  width="60">作者</td>
            <td align="center"  width="70">出版社</td>
            <td align="center"  width="40">售价</td>
            <td align="center"  width="40">库存</td>
            <td align="center"  width="200">照片</td>
            <td align="center"  width="40">删除</td>
        </tr>
        <c:forEach items="${list}" var="list">
            <tr>
                <td>${list.isbn}</td>
                <td>${list.name}</td>
                <td>${list.author}</td>
                <td>${list.publish}</td>
                <td>${list.price}</td>
                <td>${list.currcount}</td>
                <td>${list.picture}</td>
                <td><a href="">删除</a></td>
            </tr>
        </c:forEach>
    </table>
</s:form>
</body>
</html>
